/**
 * ECP Web开发 通用控件.
 * Copyright(c) 2012-2020 YGSoft.Inc
 * Created by wugang5 on 2016/5/18.
 */
define(["jquery", "bootstrap","bs-notify"], function(){
	
	/**
	 * 指向性提示
	 */
	(function($){
		$.fn.ecpPopover = function(options){
			var defaults = {
					template : '<div class="popover" role="tooltip" style="max-width:400px"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',
					trigger : 'focus'
			}
			var options = $.extend(defaults, options);
			return this.each(function(){
				$(this).popover(options);
			});
		}
	}(window.jQuery));
	
	return {
		/**
		 * 指向型提示
		 * @param {Object} element jQuery对象
		 * @param {Object} options 可选配置 
		 */
		ecpPopover : function(element, options){
			element.ecpPopover(options);
		}
	}
});